package com.xingfly.dao;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.xingfly.model.dto.Seat;

public interface SeatDao {
	/**
	 * 根据坐位状态为0的查询全部座位信息
	 * @return
	 */
	public List<Seat>SelBySeatAll(@Param("atstate") int atstate)throws Exception;
	/**
	 * 更改坐位状态
	 * @param atstate 坐位状态
	 * @param seid	坐位id
	 * @return	1成功 0失败
	 * @throws Exception
	 */
	public int UpdateByUid(@Param("atstate") int atstate,@Param("seid") int seid)throws Exception;
	
	/**
	 * 初始化座位表全部转态为0
	 * @return
	 * @throws Exception
	 */
	public int UpdateByAllatstate()throws Exception;

	
}
